All Chains
Queries all chain info within the router contract.
query Router {
router {
all_chains {
factory_address
chain_id
chain_uid
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Router {\n router {\n all_chains {\n factory_address\n chain_id\n chain_uid\n }\n }\n}"}'
Return Fields
Field | Type | Description |
---|---|---|
factory_address | String | The contract address of the factory. |
chain_uid | String | The chain UID we have queried. |
chain_id | String | The chain Id of the above chain UID. |